<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>[Acci&oacute;n]</title>
<script type="text/javascript">
function validar(){
	var nom= document.getElementById('nombre').value;
	if(nom !='') {
		
		document.form1.submit();
	}
}
function validaVacios(val){
	var box = document.getElementById(val.id);
	if(val.value==""){
		alert(val);
		box.style.backgroundColor ='#ffbb00';
	}
	else{box.style.backgroundColor ='';}
}

</script>
</head>
<!-- ?module=empleados&action=guardar -->
<? //"?>
<body >
<center>
<form id="form1" name="form1" method="post" action="index.php">
<input type="hidden" name="module" value="empleados"/>
<input type="hidden" name="action" value="guardar"/> 
  <table width="355" border="1">
    <tr>
      <th scope="col" colspan="2">Formulario de persona </th>
    </tr>
    <tr>
      <th width="116" scope="row"><div align="right">Id</div></th>
      <td width="223"><label>
        <input type="text" name="id" size="15" maxlength="4" value="<?=@$persona->id ?>" readonly=""/>
      </label></td>
    </tr>
    <tr>
      <th scope="row"><div align="right">Nombre</div></th>
      <td><input type="text" name="nombre" id="nombre" value="<?=@$persona->nombre?>" /></td>
    </tr>
    <tr>
      <th scope="row"><div align="right">Apellido paterno </div></th>
      <td><input type="text" name="aPaterno" id="aPaterno"/></td>
    </tr>
    <tr>
      <th scope="row"><div align="right">Apellido Materno </div></th>
      <td><input type="text" name="aMaterno" /></td>
    </tr>
    <tr>
      <th scope="row"><div align="right">Calle</div></th>
      <td><input type="text" name="calle" /></td>
    </tr>
    <tr>
      <th scope="row"><div align="right">N&uacute;mero </div></th>
      <td><input type="text" name="numero" /></td>
    </tr>
    <tr>
      <th scope="row"><div align="right">Colonia</div></th>
      <td><input type="text" name="colonia" /></td>
    </tr>
    <tr>
      <th scope="row"><div align="right">Celular</div></th>
      <td><input type="text" name="celular" /></td>
    </tr>
    <tr>
      <th scope="row"><div align="right">Tel&eacute;fono</div></th>
      <td><input type="text" name="telefono" /></td>
    </tr>
    <tr>
      <th scope="row"><div align="right">E-mail</div></th>
      <td><input type="text" name="email" /></td>
    </tr>
    <tr>
      <th scope="row" colspan="2">
	  <input type="submit" name="enviar" value="Enviar"  onclick="validar();"/> &nbsp; 
	  <input type="button" onclick="
  window.location.assign('index.php')" name="cancel" value="Cancelar" />
	  </th>

    </tr>
  </table>
</form>
<center/>

</body>
</html>
